package com.yuneec.droneservice.protocol;

import com.yuneec.droneservice.DroneService;
import com.yuneec.droneservice.request.IRequest;
import com.yuneec.droneservice.request.IResponseHandler;

/**
 * Created by zd.zhang on 2017/9/11.
 */

public interface ProtocolPlugin {

    IResponseHandler handleResponseBuf(byte[] data, int offset, int length);

    byte[] toRawData(IRequest request);

    int getPort();

    void init(DroneService.DroneBinder mBinder);

}
